package com.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@Configuration
@EnableAutoConfiguration
@ComponentScan
@EnableScheduling
@EnableAsync
@EnableCaching
@SpringBootApplication
@ServletComponentScan
public class Application {
    public static void main(String[] args) throws Exception {
        Object[] sources = new Object[]{Application.class, "spring/kmodule-spring.xml"};
        SpringApplication springApplication = new SpringApplication(sources);
        springApplication.run(args);
    }
}
